import request from '@/utils/request'
//评论表接口
export function bbsCommentQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/bbsComment/query',
    params: data,
  })
}

export function bbsCommentOpenApiQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/bbsComment/openApi/query',
    params: data,
  })
}

export function bbsCommentQueryById(id) {
  //查询
  return request({
    method: 'get',
    url: '/bbsComment/query/' + id,
  })
}

export function bbsCommentAdd(data) {
  //添加
  return request({
    method: 'post',
    url: '/bbsComment/add',
    data,
  })
}

export function bbsCommentDelete(id) {
  //删除
  return request({
    method: 'get',
    url: '/bbsComment/delete/' + id,
  })
}

export function bbsCommentUpdate(data) {
  //修改
  return request({
    method: 'post',
    url: '/bbsComment/update',
    data,
  })
}
